﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using PotentialRentals.Models;


namespace PotentialRentals.DAL
{
    public class RentalDBContext : DbContext
    {
        public RentalDBContext()
        {
            //this.Database.Create();
            //this.Database.CreateIfNotExists();
            //this.Database.Connection.ConnectionString = "data source=.\\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|RentalDB.mdf;User Instance=true;Initial Catalog=RentalDB";
            //this.Database.Connection.ConnectionString = "data source=.;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|RentalDB.mdf;User Instance=true;Initial Catalog=RentalDB";
        }

        public DbSet<User> Users { get; set; }
        public DbSet<UserRentalRank> UserRentalRanks { get; set; }
        public DbSet<Rental> Rentals { get; set; }
        public DbSet<Address> Addresses { get; set; }
        public DbSet<AddressAmenity> AddressAmenities { get; set; }
        public DbSet<RentalAmenity> RentalAmenities { get; set; }
        public DbSet<RentType> RentTypes { get; set; }
        public DbSet<State> States { get; set; }
    }
}